package com.jlzj.service;

import com.jlzj.entity.User;
import com.jlzj.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * TODO:
 *
 * @author jiangyangchuan
 * @date 2022/8/14 0014 22:21
 */

@Service
public class UserService {

    @Autowired
    private UserMapper userMapper;

    public List<User> getUserList(){
        List<User> userList = userMapper.selectAll();
        return userList;
    }
    public void insert(User user){
        userMapper.insert(user);
    }

}
